import Mock from 'mockjs'  //导入mockjs
Mock.mock('/swiper', 'get', {
    status:200, //请求成功状态码
    'data|4':[
        {'img':"@Image('381x172','black','red','img')",'title':'@ctitle(15)',}
    ]
    })

Mock.mock('/tabs','get',{
    status:200,
    'data|10':[
        {
            'tab':'@cword(3, 5)',
        }
    ]
})
Mock.mock('/tab','get',{
    status:200,
    'data|10':[
        {'content':'@csentence(10, 25)','img':"@Image('118x88','blue','#fff','HTML')",'date':'@date()'}
    ]
})

Mock.mock('/nav','get',{
    status:200,
    'data|4':[
        {'name':'@first()'}
    ]
})

Mock.mock('/navList','get',{
    status:200,
    'data|20':[
        {'name':'@first()'}
    ]
})
Mock.mock('/read','get',{
    status:200,
    'data|8':[
        {'content':'@csentence(10, 25)'}
    ]
})



